package com.java.threadLocal.multiThread;

import org.junit.Test;

public class TestClient {
	
	@Test
	public void testThreadLocal() {
		SequenceNumber sn=new SequenceNumber();
        //3个线程共享sn,各自产生序列号
		MyThread thread01 = new MyThread(sn);
		MyThread thread02 = new MyThread(sn);
		MyThread thread03 = new MyThread(sn);
		thread01.start();
		thread02.start();
		thread03.start();    
	}

}
